package com.hnu.web;

import java.util.ArrayList;
import java.util.List;

import com.hnu.model.Bookmark;
import com.hnu.model.User;

public class UserBasedRecommendBean extends BaseAction {
	private static final long serialVersionUID = 6162576271721448784L;
	private List<Bookmark> bookmarkList;
	
	public String userBasedRecommend()
	{
		User user = (User) this.session.get("user");
		long userId = user.getUserId();
		bookmarkList = new ArrayList<Bookmark>();
		bookmarkList.addAll(this.servLocator.getBookmarkServ().getUserBasedRecommendBookmark(userId, 10));
		return "success";
	}

	public List<Bookmark> getBookmarkList() {
		return bookmarkList;
	}

	public void setBookmarkList(List<Bookmark> bookmarkList) {
		this.bookmarkList = bookmarkList;
	}

}
